import { Nodes } from '@knno/dom';
import { empty } from '../components/empty/empty';
import { JSXProps } from '@knno/dom/jsx';
import { AttrCheck, jsxBuild } from './utils';

export type UIEmpty = Nodes;

type EmptyProps = JSXProps<UIEmpty>;

const ATTRS: AttrCheck = {};

export function Empty(props: EmptyProps, children: Nodes[]): UIEmpty {
	return jsxBuild(empty(), props, children, ATTRS);
}
